package cn.edu.zhku.citrusmonitor.person.util;

import java.util.List;

public class PageBean<Object> {
	private Integer currentPage=1;	//当前页 默认值
	private Integer pageSize=6;		//每页大小 默认值
	private Long totalPage;		//总页数
	private Long count;         //总记录数
	private List<Object> beanList;	//记录集合
	public Integer getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	/**
	 * 运算后得到总记录数
	 * @return
	 */
	public Long getTotalPage() {
		return (long) Math.ceil(count*1.0/pageSize);
	}
	
	public Long getCount() {
		return count;
	}
	public void setCount(Long count) {
		this.count = count;
	}
	public List<Object> getBeanList() {
		return beanList;
	}
	public void setBeanList(List<Object> beanList) {
		this.beanList = beanList;
	}
	
	
}
